package com.xxx.server.controller;


import com.xxx.server.pojo.Notice;
import com.xxx.server.service.INoticesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 公告
 * </p>
 *
 * @author cd
 * @since 2023-12-19
 */
@RestController
@RequestMapping("/notices")
public class NoticesController {
    @Autowired
    private INoticesService iNoticesService;
    @GetMapping()
    public Notice notices(){
        Notice notice = iNoticesService.getNotice();
        return notice;
    }

}
